<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="./jquery-1.8.1.min.js"></script>
</head>
<body>
    <img src="./img/1.jpg" onmouseout='setimg(this)'alt="">
    <script>

 function setimg(obj){
    $name = obj.src;
    alert($name);
 }





    </script>
</body>
</html>